
<!doctype html>
<html>

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
  <link rel="stylesheet" href="../../static/BOSGeo/BOSGeo.css" />
  <title>编辑要素</title>
  <style>
    html {
      font-size: 12px;
    }

    html,
    body,
    #mapContainer {
      height: 100%;
      width: 100%;
      padding: 0;
      margin: 0;
    }

  </style>
</head>

<body>
  <div id="mapContainer"></div>
  <script src="../../static/BOSGeo/BOSGeo.js"></script>
  <script>
    var map = new BOSGeo.Map('mapContainer', {
    mapType: BOSGeo.TDT_IMAGERY
    });
    var btnConfig = {
        home: true, // 是否显示初始化位置按钮
        shadows: true, // 是否显示阴影按钮
        roam: true, // 是否显示漫游按钮
        restore: true, // 是否显示默认状态按钮
        hide: true, // 是否显示隐藏按钮
        baseLayer: true, // 是否显示底图设置
        modelTree: true, // 是否显示模型树按钮
        attribute: true, // 是否显示属性按钮
        measurement: true, // 是否显示测距按钮
        movemodel: true, // 是否显示模型移动按钮
        clipping: true, // 是否显示裁切按钮
        screentshot: true, // 地图截图
        snow: true, // 雪
        rain: true, // 雨
        selfly: true, // 自身环绕
        autofly: true, // 绕点飞行
        draw: {
            polyline: true, // 画直线
            polygon: true,
            point: true,
            wall: true,
            circle: true,
            icon: true,
            cylinder: true,
            rectangle: true
        }
    };
    var mytool = new BOSGeo.Tool(btnConfig);
    var editor = new BOSGeo.Editor()
    editor.activate()
  </script>
</body>

</html>
<body>
  <div id="container"></div>
  <script src="../../static/kye-map.min.js"></script>
  <script>
    var map = map = new KMap.Map('container', {
      resizeEnable: true
    });

    map.on("complete", function () {
      console.log("地图加载完成！");
    });
  </script>
</body>

</html>